package Alignment;

import java.util.ArrayList;





public class Presenter {

	ArrayList<String> file1;	
	ArrayList<String> consens;
	ArrayList<String> file2;
	
	
	
	
	public Presenter(){
		file1= new ArrayList<String>();
		file2= new ArrayList<String>();
		consens = new ArrayList<String>();
		
		
	}
	
	public String getFile1() {
		StringBuffer strBf = new StringBuffer();
		for(int i = 0; i<file1.size(); i++){
			strBf.append(file1.get(i));
		}
		
		
		
		return strBf.toString();
	}
	
	public String getFile2() {
		StringBuffer strBf = new StringBuffer();
		for(int i = 0; i<file2.size(); i++){
			strBf.append(file2.get(i));
		}
		
		
		
		return strBf.toString();
	}
	
	public String getConsens() {
		StringBuffer strBf = new StringBuffer();
		for(int i = 0; i<consens.size(); i++){
			strBf.append(consens.get(i));
		}
		
		
		
		return strBf.toString();
	}

	

	

	public void prepend(int list, String string){
		if(list == 1){
			file1.add(0, string);
		}
		else if(list == 2){
			consens.add(0,string);
		}
		else if(list == 3){
			file2.add(0,string);
		}
		else
			throw new IllegalArgumentException("Zahlen gehen von 1 bis 3");
	}
	public void showPresenterLists(){
		System.out.println("\n\nFile1");
		for(int i=0; i<file1.size(); i++){
			System.out.print(file1.get(i));
			
			
		}
		
		System.out.println("\n\nconsens");
		for(int i=0; i<consens.size(); i++){
			
			System.out.print(consens.get(i));
			
		}
		
		System.out.println("\n\nFile2");
		for(int i=0; i<file2.size(); i++){
			
			System.out.print(file2.get(i));
			
		}
		
		
	}
	
	
	
	
}
